#include <bits/stdc++.h>
using namespace std;
using ll = long long;

void solve() {
	int a, b, c;
	if (!(cin >> a >> b >> c)) return;

	if (b > a || c > a) {
		cout << -1 << "\n";
		return;
	}

	vector<int> v(a + 2);

	v[0] = 1;
	v[1] = 1;

	for (int i = 0; i < a; i++) {
		ll current_sum_pre = v[i] + v[i+1];

		int target_rem_2 = (i < b) ? 0 : 1;

		int target_rem_3 = (i < c) ? 0 : 1;

		for (int x = 1; x <= 6; x++) {
			bool check2 = ((current_sum_pre + x) % 2 == target_rem_2);

			bool check3 = ((current_sum_pre + x) % 3 == target_rem_3);

			if (check2 && check3) {
				v[i + 2] = x;
				break;
			}
		}
	}

	cout << a + 2 << "\n";
	for (int i = 0; i < a + 2; i++) {
		cout << v[i] << (i == a + 1 ? "" : " ");
	}
	cout << "\n";
}

int main() {
	ios::sync_with_stdio(false);
	cin.tie(nullptr);
	solve();
	return 0;
}